<template>
    <input type="text" v-on:keyup.enter="submit">
</template>
<script setup>
let submit = () =>console.log('捕获到Enter键')
</script>
<style>

</style>